Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added campaign statistics endpoints #565

Merged
merged 3 commits into from
Nov 13, 2023

Conversation

tongo-angelov
Copy link
Contributor

Created a few endpoints needed for displaying charts in campaign's page

Since prisma does not have implementation for DATE_TRUNC, had to use queryRaw

New endpoints - /statistics

  • /donations - list campaign's donations grouped by either day, week or month
  • /unique-donations - group donations with the same amount
  • /hourly-donations - group donations by the time of day

@github-actions
Copy link

github-actions bot commented Oct 19, 2023

✅ Tests will run for this PR. Once they succeed it can be merged.

@igoychev igoychev added the run tests Allows running the tests workflows for forked repos label Oct 26, 2023
@github-actions github-actions bot removed the run tests Allows running the tests workflows for forked repos label Oct 26, 2023
Copy link
Contributor

@igoychev igoychev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good, well done!

@igoychev igoychev merged commit 4ff10fe into podkrepi-bg:master Nov 13, 2023
11 of 12 checks passed
@tongo-angelov tongo-angelov deleted the campaign-statistics branch November 15, 2023 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants